import { ecs } from "db://app-game/libs/ecs/ECS";
import { GameSaveData } from "../LocalStorageManager.type";

/**
 * 本地缓存模型组件
 */
@ecs.register("LSM")
export class LocalStorageModelComp extends ecs.Comp {
  public data!: GameSaveData;
  public autoSaveTimer: number = 0;
  reset(): void {
    this.data = null;
  }
}
